<?php // no direct access
defined('_JEXEC') or die('Restricted access'); ?>

<?php
$user =& JFactory::getUser();
if($user->get('guest')){
?>
<div class="p10t">
  <div class="tt3">
    <p class="text_tt1">Login</p>
  </div>
  <div class="box_pro p10t">
    Please login
  </div>
  {module Ads} </div>

<?php	
}else{
?>
<div class="p10t">
  <div class="tt3">
    <p class="text_tt1">Login</p>
  </div>
  <div class="box_pro p10t">
    Login OK old
	<?php 
	echo 'You are logged in as:<br />';
  echo 'User name: ' . $user->username . '<br />';
  echo 'Real name: ' . $user->name . '<br />';
  echo 'User ID  : ' . $user->id . '<br />';
	?>
  </div>
  {module Ads} </div>
<?php
}
?>

<div class="center_bt"></div>